<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::MultiVariateNormalDistribution Class Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html">MultiVariateNormalDistribution</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_multi_variate_normal_distribution-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::MultiVariateNormalDistribution Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Implements a multi-variate normal distribution with zero mean.  
 <a href="classshark_1_1_multi_variate_normal_distribution.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_multi_variate_normal_distribution_8h_source.html">shark/Statistics/Distributions/MultiVariateNormalDistribution.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5617396a18a310cb513cf43d593f95de" id="r_a5617396a18a310cb513cf43d593f95de"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a5617396a18a310cb513cf43d593f95de">MultiVariateNormalDistribution</a> (RealMatrix const &amp;Sigma)</td></tr>
<tr class="memdesc:a5617396a18a310cb513cf43d593f95de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <br /></td></tr>
<tr class="separator:a5617396a18a310cb513cf43d593f95de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e5899c265e936f1b7b5c77d77953620" id="r_a8e5899c265e936f1b7b5c77d77953620"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a8e5899c265e936f1b7b5c77d77953620">MultiVariateNormalDistribution</a> ()</td></tr>
<tr class="memdesc:a8e5899c265e936f1b7b5c77d77953620"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <br /></td></tr>
<tr class="separator:a8e5899c265e936f1b7b5c77d77953620"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2a3b0120928a80bc26a5a7df2ac2a1b" id="r_ac2a3b0120928a80bc26a5a7df2ac2a1b"><td class="memTemplParams" colspan="2">template&lt;typename Archive &gt; </td></tr>
<tr class="memitem:ac2a3b0120928a80bc26a5a7df2ac2a1b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#ac2a3b0120928a80bc26a5a7df2ac2a1b">serialize</a> (Archive &amp;ar, const std::size_t version)</td></tr>
<tr class="memdesc:ac2a3b0120928a80bc26a5a7df2ac2a1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores/Restores the distribution from the supplied archive.  <br /></td></tr>
<tr class="separator:ac2a3b0120928a80bc26a5a7df2ac2a1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58c4c416f7e516ccd28dc53ae7828d78" id="r_a58c4c416f7e516ccd28dc53ae7828d78"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a58c4c416f7e516ccd28dc53ae7828d78">resize</a> (std::size_t size)</td></tr>
<tr class="memdesc:a58c4c416f7e516ccd28dc53ae7828d78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resizes the distribution. Updates both eigenvectors and eigenvalues.  <br /></td></tr>
<tr class="separator:a58c4c416f7e516ccd28dc53ae7828d78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2f0af22ae2978225f6990f2abc01079" id="r_ab2f0af22ae2978225f6990f2abc01079"><td class="memItemLeft" align="right" valign="top">RealMatrix const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#ab2f0af22ae2978225f6990f2abc01079">covarianceMatrix</a> () const</td></tr>
<tr class="memdesc:ab2f0af22ae2978225f6990f2abc01079"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accesses the covariance matrix defining the distribution.  <br /></td></tr>
<tr class="separator:ab2f0af22ae2978225f6990f2abc01079"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf941923feae3b6de9845ce161e86d35" id="r_acf941923feae3b6de9845ce161e86d35"><td class="memItemLeft" align="right" valign="top">RealMatrix &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#acf941923feae3b6de9845ce161e86d35">covarianceMatrix</a> ()</td></tr>
<tr class="memdesc:acf941923feae3b6de9845ce161e86d35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accesses a mutable reference to the covariance matrix defining the distribution. Allows for l-value semantics.  <br /></td></tr>
<tr class="separator:acf941923feae3b6de9845ce161e86d35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4908517c95357a454ceb2900be594a0c" id="r_a4908517c95357a454ceb2900be594a0c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a4908517c95357a454ceb2900be594a0c">setCovarianceMatrix</a> (RealMatrix const &amp;matrix)</td></tr>
<tr class="memdesc:a4908517c95357a454ceb2900be594a0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the covariance matrix and updates the internal variables. This is expensive.  <br /></td></tr>
<tr class="separator:a4908517c95357a454ceb2900be594a0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1a79af05867366d0ca300825a29a87a" id="r_aa1a79af05867366d0ca300825a29a87a"><td class="memItemLeft" align="right" valign="top">RealMatrix const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#aa1a79af05867366d0ca300825a29a87a">eigenVectors</a> () const</td></tr>
<tr class="memdesc:aa1a79af05867366d0ca300825a29a87a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accesses an immutable reference to the eigenvectors of the covariance matrix.  <br /></td></tr>
<tr class="separator:aa1a79af05867366d0ca300825a29a87a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a304ff217e3a7ad935387e7a92b67546e" id="r_a304ff217e3a7ad935387e7a92b67546e"><td class="memItemLeft" align="right" valign="top">RealVector const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a304ff217e3a7ad935387e7a92b67546e">eigenValues</a> () const</td></tr>
<tr class="memdesc:a304ff217e3a7ad935387e7a92b67546e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accesses an immutable reference to the eigenvalues of the covariance matrix.  <br /></td></tr>
<tr class="separator:a304ff217e3a7ad935387e7a92b67546e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11520c6c68f92492b1b559000b8fdbbe" id="r_a11520c6c68f92492b1b559000b8fdbbe"><td class="memTemplParams" colspan="2">template&lt;class randomType &gt; </td></tr>
<tr class="memitem:a11520c6c68f92492b1b559000b8fdbbe"><td class="memTemplItemLeft" align="right" valign="top">result_type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a11520c6c68f92492b1b559000b8fdbbe">operator()</a> (randomType &amp;rng) const</td></tr>
<tr class="memdesc:a11520c6c68f92492b1b559000b8fdbbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Samples the distribution.  <br /></td></tr>
<tr class="separator:a11520c6c68f92492b1b559000b8fdbbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad90c8cdf2257b5b523a38b0a36d95bf2" id="r_ad90c8cdf2257b5b523a38b0a36d95bf2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#ad90c8cdf2257b5b523a38b0a36d95bf2">update</a> ()</td></tr>
<tr class="memdesc:ad90c8cdf2257b5b523a38b0a36d95bf2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the evd of the current covariance matrix.  <br /></td></tr>
<tr class="separator:ad90c8cdf2257b5b523a38b0a36d95bf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implements a multi-variate normal distribution with zero mean. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00040">40</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5617396a18a310cb513cf43d593f95de" name="a5617396a18a310cb513cf43d593f95de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5617396a18a310cb513cf43d593f95de">&#9670;&#160;</a></span>MultiVariateNormalDistribution() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">shark::MultiVariateNormalDistribution::MultiVariateNormalDistribution </td>
          <td>(</td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>Sigma</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">Sigma</td><td>covariance matrix </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00051">51</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#ad90c8cdf2257b5b523a38b0a36d95bf2">update()</a>.</p>

</div>
</div>
<a id="a8e5899c265e936f1b7b5c77d77953620" name="a8e5899c265e936f1b7b5c77d77953620"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e5899c265e936f1b7b5c77d77953620">&#9670;&#160;</a></span>MultiVariateNormalDistribution() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">shark::MultiVariateNormalDistribution::MultiVariateNormalDistribution </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00057">57</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="acf941923feae3b6de9845ce161e86d35" name="acf941923feae3b6de9845ce161e86d35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf941923feae3b6de9845ce161e86d35">&#9670;&#160;</a></span>covarianceMatrix() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealMatrix &amp; shark::MultiVariateNormalDistribution::covarianceMatrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Accesses a mutable reference to the covariance matrix defining the distribution. Allows for l-value semantics. </p>
<p>ATTENTION: If the reference is altered, update needs to be called manually. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00084">84</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

</div>
</div>
<a id="ab2f0af22ae2978225f6990f2abc01079" name="ab2f0af22ae2978225f6990f2abc01079"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2f0af22ae2978225f6990f2abc01079">&#9670;&#160;</a></span>covarianceMatrix() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealMatrix const  &amp; shark::MultiVariateNormalDistribution::covarianceMatrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Accesses the covariance matrix defining the distribution. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00076">76</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_m_a.html#a2fe67c78f272defd3e468d0eeaa1a553">shark::CMA::covarianceMatrix()</a>, and <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a4908517c95357a454ceb2900be594a0c">setCovarianceMatrix()</a>.</p>

</div>
</div>
<a id="a304ff217e3a7ad935387e7a92b67546e" name="a304ff217e3a7ad935387e7a92b67546e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a304ff217e3a7ad935387e7a92b67546e">&#9670;&#160;</a></span>eigenValues()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealVector const  &amp; shark::MultiVariateNormalDistribution::eigenValues </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Accesses an immutable reference to the eigenvalues of the covariance matrix. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00100">100</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_m_a.html#a7a80596955e5d064cc8e6f2a69498c5e">shark::CMA::condition()</a>, <a class="el" href="classshark_1_1_c_m_a.html#a6735aa83880d1be9675f24dea483f665">shark::CMA::eigenValues()</a>, and <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a11520c6c68f92492b1b559000b8fdbbe">operator()()</a>.</p>

</div>
</div>
<a id="aa1a79af05867366d0ca300825a29a87a" name="aa1a79af05867366d0ca300825a29a87a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1a79af05867366d0ca300825a29a87a">&#9670;&#160;</a></span>eigenVectors()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealMatrix const  &amp; shark::MultiVariateNormalDistribution::eigenVectors </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Accesses an immutable reference to the eigenvectors of the covariance matrix. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00095">95</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_m_a.html#a258efdafafccec607bd09eaebd9955cc">shark::CMA::eigenVectors()</a>.</p>

</div>
</div>
<a id="a11520c6c68f92492b1b559000b8fdbbe" name="a11520c6c68f92492b1b559000b8fdbbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11520c6c68f92492b1b559000b8fdbbe">&#9670;&#160;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class randomType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">result_type shark::MultiVariateNormalDistribution::operator() </td>
          <td>(</td>
          <td class="paramtype">randomType &amp;&#160;</td>
          <td class="paramname"><em>rng</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Samples the distribution. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rng</td><td>Random number generator. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00107">107</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a304ff217e3a7ad935387e7a92b67546e">eigenValues()</a>, and <a class="el" href="namespaceshark_1_1random.html#a972c5f7f031612a130aa077fc9136a9f">shark::random::gauss()</a>.</p>

</div>
</div>
<a id="a58c4c416f7e516ccd28dc53ae7828d78" name="a58c4c416f7e516ccd28dc53ae7828d78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58c4c416f7e516ccd28dc53ae7828d78">&#9670;&#160;</a></span>resize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::MultiVariateNormalDistribution::resize </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Resizes the distribution. Updates both eigenvectors and eigenvalues. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The new size of the distribution </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00070">70</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#ad90c8cdf2257b5b523a38b0a36d95bf2">update()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_ackley_e_s_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="ac2a3b0120928a80bc26a5a7df2ac2a1b" name="ac2a3b0120928a80bc26a5a7df2ac2a1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2a3b0120928a80bc26a5a7df2ac2a1b">&#9670;&#160;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Archive &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::MultiVariateNormalDistribution::serialize </td>
          <td>(</td>
          <td class="paramtype">Archive &amp;&#160;</td>
          <td class="paramname"><em>ar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::size_t&#160;</td>
          <td class="paramname"><em>version</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Stores/Restores the distribution from the supplied archive. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">ar</td><td>The archive to read from/write to. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">version</td><td>Currently unused. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00063">63</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

</div>
</div>
<a id="a4908517c95357a454ceb2900be594a0c" name="a4908517c95357a454ceb2900be594a0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4908517c95357a454ceb2900be594a0c">&#9670;&#160;</a></span>setCovarianceMatrix()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::MultiVariateNormalDistribution::setCovarianceMatrix </td>
          <td>(</td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the covariance matrix and updates the internal variables. This is expensive. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00089">89</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#ab2f0af22ae2978225f6990f2abc01079">covarianceMatrix()</a>, and <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#ad90c8cdf2257b5b523a38b0a36d95bf2">update()</a>.</p>

</div>
</div>
<a id="ad90c8cdf2257b5b523a38b0a36d95bf2" name="ad90c8cdf2257b5b523a38b0a36d95bf2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad90c8cdf2257b5b523a38b0a36d95bf2">&#9670;&#160;</a></span>update()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::MultiVariateNormalDistribution::update </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Calculates the evd of the current covariance matrix. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00119">119</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a5617396a18a310cb513cf43d593f95de">MultiVariateNormalDistribution()</a>, <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a58c4c416f7e516ccd28dc53ae7828d78">resize()</a>, and <a class="el" href="classshark_1_1_multi_variate_normal_distribution.html#a4908517c95357a454ceb2900be594a0c">setCovarianceMatrix()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Statistics/Distributions/<a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
